﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EvaluationItemsAddingPage.aspx.cs" Inherits="EvaluationSystem.ConfigurationPages.EvaluationItemsPages.EvaluationItemsAddingPage" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" />
    <ext:ToolTip ID="tooltipForSummary" 
            runat="server" 
            Target="cbbSummary" 
            Html="<table><tr><td>设置对应评分指标内容,显示在对应的评分指标项下.</td></tr></table>" 
            Title="评分指标项" 
            AutoHide="false" 
            Closable="true"
            Draggable="true"
             Shadow="Sides"
            />

    <ext:Window 
            ID="EvaluationAddingWindow" 
            runat="server" 
            Closable="false"
            Resizable="false"
            Height="300" 
            Icon="Application"
            Title="增加评分指标内容"
            Draggable="false"
            Width="400"
            Modal="false"
            BodyPadding="5"
            Padding="5"
            Layout="AnchorLayout" >
            <Items >
            
                <ext:TextArea 
                    ID="txtEvalutionItemName" 
                    runat="server"                     
                    FieldLabel="评分指标内容" 
                    AllowBlank="false"
                    BlankText="请输入评分指标内容."
                    MaxLength = "500"
                    AnchorHorizontal="100%"
                    Height="200"
                    />

               <ext:ComboBox runat="server" ID="cbbSummary" AllowBlank="false"  FieldLabel="评分指标项" AnchorHorizontal="100%"/>

            </Items>
            <Buttons>
                <ext:Button ID="btnSave" runat="server" Text="保存" Icon="Accept">
                    <Listeners>
                        <Click Handler="
                            if (!#{txtEvalutionItemName}.validate() || !#{cbbSummary}.validate()) {
                                Ext.Msg.alert('Error','请填写必要内容.');
                                // return false to prevent the btnLogin_Click Ajax Click event from firing.
                                return false; 
                            }" />
                    </Listeners>
                    <DirectEvents>
                        <Click OnEvent="btnSave_Click">
                            <EventMask ShowMask="true" Msg="保存中..." MinDelay="500" />
                        </Click>
                    </DirectEvents>
                </ext:Button>
                <ext:Button ID="btnCancel" runat="server" Text="取消" Icon="Decline">
                    
                </ext:Button>
            </Buttons>
            
        </ext:Window>
    </form>
</body>
</html>
